home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / DynaDoodle / DoodleBundle.h < prev    next >
Text File  |  1993-12-14  |  2KB  |  31 lines

  1. /**------------------------------------*------------------------------------**
  2.     RELEASED TO THE PUBLIC DOMAIN BY CODEWORKS DEVELOPMENT, DECEMBER 1993.
  3.     You may freely copy, distribute and reuse the code in this example. Codeworks disclaims any warranty of any kind, expressed or implied, as to its fitness for any particular use.
  4.     Author:  Andrew Vyrros, av@codeworks.com
  5.  **------------------------------------*------------------------------------**/
  6. /**------------------------------------*------------------------------------**
  7.     File:    DoodleBundle.h
  8.     Project: DynaDoodle
  9.     Info:    Interface of the DoodleBundle class. DoodleBundle is a subclass of NXBundle designed specifically for managing dynamically loaded modules containing a single Doodle object. DoodleManager creates a single DoodleBundle instance for each doodle module that it finds in the Library directories. When asked for its Doodle, a DoodleBundle will dynamically load its code file, create an instance of its Doodle subclass, and then return the instance to DoodleManager.
  10.  **------------------------------------*------------------------------------**/
  11.  
  12. #import <objc/NXBundle.h>
  13.  
  14. @class Doodle;
  15.  
  16.  
  17. @interface DoodleBundle:NXBundle
  18. {
  19.   const char           *doodleName;  // UI string naming doodle
  20.   const char           *doodleDescription;// UI string describing doodle
  21.   Doodle               *doodle;      // doodle instance managed by DoodleBundle
  22. }
  23.  
  24. - initForDirectory:(const char *)path;
  25. - free;
  26. - (const char *)doodleName;
  27. - (const char *)doodleDescription;
  28. - (Doodle *)doodle;
  29.  
  30. @end
  31.